package com.gk.javaservice.util.base;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.net.InetAddress;
import java.net.UnknownHostException;

//基本api
public final class BaseApi {
	private static Log log = LogFactory.getLog(BaseApi.class);

	public static String getApi() throws UnknownHostException {
		log.info("in to getApi");
		InetAddress address = InetAddress.getLocalHost();
		String ip = address.getHostAddress();
		// System.out.println("ip:" + ip);
		String url="http://" + ip + ":9000";
		return "";
	}
}
